package html;

public class Message {
	
	private String title;
	
	private String text;
	
	private Long sender;
	
	public Message(String title, String text, Long sender) {
		this.title = title;
		this.text = text;
		this.sender = sender;
	}
	
	// In der Uebersicht nur Titel + Sender + Datum
	public String toString() {
		String ergebnis = title + " Empfangen durch: "
		+secure.UserRights.getUserName(sender);
		return ergebnis;
	}
	
	// Bei naeherer Betrachtung dann auch samt Inhalt
	public String getMessageText() {
		return text;
	}
	
}

//public static final String MESSAGE_ID_COL = TABLE_NAME+"_id",
//SENDER_ID_COL = "sender_id", RECEIVER_ID_COL = "receiver_id",
//MESSAGE_TITLE_COL = TABLE_NAME+"_title", 
//MESSAGE_TEXT_COL=TABLE_NAME+"_text";